package de.stefanocke.roo.wicket.templates

import de.stefanocke.roo.wicket.Stereotypes

class VersionedTemplate extends JavaHtmlTemplate{
	
	override String javaClassNameWhenNew(){
		"Versioned"
	}
	override isDomain(){
		true
	}
	
	override String stereotype(){
		Stereotypes::ENTITY_VERSIONED
	}
	
	override subPackageToUseWhenNew(){
		"common"
	}
	
	override buildJavaContents(){
		import_("java.io.Serializable")
		'''
		«stereotypeAnnotation»
		public interface «simpleTypeName»<V extends Serializable> {
			«stereotypeAnnotation(Stereotypes::ENTITY_VERSION_ACCESSOR)»
			V getVersion();
		}
		'''
	}
	
	
}